package com.gt.wxpay.cashier.domain.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * packageName com.gt.wxpay.cashier.domain.model
 *
 * @author GuoTong
 * @version JDK 8
 * @className BaseEntity
 * @date 2024/3/25
 * @description TODO
 */
@Data
public abstract class BaseEntity implements Serializable {


    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long mid;

    @TableField(value = "creator_id")
    protected Long creatorId;

    @TableField(value = "creator")
    protected String creator;

    @JSONField(
            format = "yyyy-MM-dd HH:mm:ss"
    )
    @TableField(value = "create_time")
    protected LocalDateTime createTime;

    @TableField(value = "updator_id")
    protected Long updatorId;
    @TableField(value = "updator")
    protected String updator;
    @JSONField(
            format = "yyyy-MM-dd HH:mm:ss"
    )
    @TableField(value = "update_time")
    protected LocalDateTime updateTime;
    @TableField(value = "state_id")
    protected Integer stateId;
}
